package cn.handong.tool.多线程.线程池;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ThreeElementsVerifyManager {

	@Async("ThreeElementVerifyExecutor")
	public void processThreeElementsVerify() {
		System.out.println(Thread.currentThread().getName() + " : start");
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
			System.out.println("错误出现");
		}
//		for (int i = 0; i < 10; i++) {
//			System.out.println(Thread.currentThread().getName() + " : " + i);
//		}
		System.out.println(Thread.currentThread().getName() + " : end");
	}
}
